﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/QuizAdmin.Master" AutoEventWireup="true" CodeBehind="AddApplicant.aspx.cs" Inherits="BladeTecWebApplication.AddApplicant" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	
<script type="text/javascript">
	$(function () {

		// Datepicker
		$('#datepicker').datepicker({
			inline: true
		});

	});

	function submitAddApplicant() {
		if (Page_ClientValidate()) {
			$("#divRequired").hide();
		} else {
			$("#divRequired").show();
		}
		$("#MainContent_interviewDate").val($("#datepicker").val());
	}
</script>

</asp:Content>
<asp:Content ID="MainContent_AddApplicant" ContentPlaceHolderID="MainContent" runat="server">

<span class="pageTitle">Add Applicant</span>
<br /><br />

<asp:Panel ID="newApplicantForm" runat="server">
	
	<div style="color: Red; display:none" id="divRequired">
	* Required<br /><br />
	</div>

	<table cellpadding="0" cellspacing="0" border="0">
	<tr>

	<td valign="top">

	<table cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td>First Name:<asp:RequiredFieldValidator ID="rf_fname" runat="server"
					ErrorMessage="*" ControlToValidate="txtFirstName" ForeColor="Red"></asp:RequiredFieldValidator>
			</td>
			<td style="width:10px;">
			&nbsp;
			</td>
			<td>
				<asp:TextBox runat="server" ID="txtFirstName" CssClass="stdTextBox" Width="150px" MaxLength="20" />
			</td>
		</tr>
		<tr>
			<td colspan="3" style="height:5px;">&nbsp;</td>
		</tr>
		<tr>
			<td>Last Name:<asp:RequiredFieldValidator ID="rf_lname" runat="server"
					ErrorMessage="*" ControlToValidate="txtLastName" ForeColor="Red"></asp:RequiredFieldValidator>
			</td>
			<td style="width:10px;">
			&nbsp;
			</td>
			<td>
				<asp:TextBox runat="server" ID="txtLastName" CssClass="stdTextBox" Width="150px" MaxLength="40" />
			</td>
		</tr>
		<tr>
			<td colspan="3" style="height:5px;">&nbsp;</td>
		</tr>
		<tr>
			<td>Phone Number:
			</td>
			<td style="width:10px;">
			&nbsp;
			</td>
			<td>
				<asp:TextBox runat="server" ID="txtPhone" CssClass="stdTextBox" width="100px" MaxLength="12"/>
			</td>
		</tr>
		<tr>
			<td colspan="3" style="height:5px;">&nbsp;</td>
		</tr>
		<tr>
			<td>Email:<asp:RequiredFieldValidator CssClass="justsomeclass" ID="rf_email" runat="server" ErrorMessage="*" ControlToValidate="txtEmail" ForeColor="Red"></asp:RequiredFieldValidator>
			</td>
			<td style="width:10px;">
			&nbsp;
			</td>
			<td>
				<asp:TextBox runat="server" ID="txtEmail" CssClass="stdTextBox" Width="150px" MaxLength="50" />
			</td>
		</tr>
		<tr>
			<td colspan="3" style="height:5px;">&nbsp;</td>
		</tr>
		<tr>
			<td>Position:<asp:RequiredFieldValidator ID="rf_position" runat="server"
					ErrorMessage="*" ControlToValidate="ddlPositions" ForeColor="Red"></asp:RequiredFieldValidator>
			</td>
			<td style="width:10px;">
			&nbsp;
			</td>
			<td>
			
				<asp:DropDownList ID="ddlPositions" runat="server">
				</asp:DropDownList>
			
			</td>
		</tr>

	</table>

	</td>
	<td style="width:30px;">
	&nbsp;
	</td>
	<td valign="top">
		Interview Date:<br />
		<div id="datepicker"></div>
		<br />
	</td>
	</tr>

	<tr>
	<td colspan="3" style="text-align:right; border-top: 1px solid #666;">
	<br />


	<asp:Button ID="btnAddApplicant" runat="server" Text="Add" 
					onclick="btnAddApplicant_Click" onclientclick="submitAddApplicant();"/>

	</td>
	</tr>

	</table>

	<asp:HiddenField ID="interviewDate"
		runat="server" />

</asp:Panel>

<asp:Panel ID="addConfirmationForm" runat="server" Visible="false">

	<asp:Label ID="lblFirstName" runat="server" Font-Bold="True"></asp:Label>&nbsp;<asp:Label 
			ID="lblLastName" runat="server" Font-Bold="True"></asp:Label> has been set up to
	take the quiz for position&nbsp;<asp:Label ID="lblPosition" runat="server" 
			Font-Bold="True"></asp:Label>&nbsp;on&nbsp;<asp:Label ID="lblQuizDate" 
			runat="server" Font-Bold="True"></asp:Label>.

	<br />
	<br />

	Key:&nbsp;<asp:Label ID="lblKey" runat="server" Font-Bold="True"></asp:Label>

</asp:Panel>

</asp:Content>
